package com.leyou.item.api;

import com.leyou.item.pojo.Brand;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @author CHERRY
 * @date 2018-09-08-0:10
 */
@RequestMapping("brand")
public interface BrandApi {
    /**
     * 根据id查询品牌名称
     *
     * @param id
     * @return
     */
    @GetMapping("bid")
    Brand queryBrandByBid(@RequestParam("id") Long id);

    /**
     * 根据多个id查询品牌
     *
     * @param ids
     * @return
     */
    @PostMapping("list")
    List<Brand> queryBrandByIds(@RequestParam("ids") List<Long> ids);
}
